﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.Mvc;
using Scheduling.Models.Interfaces;
using Scheduling.Models;



namespace Scheduling.Models.Helpers
{
    public class RequestHelper
    {
        public static List<SelectListItem> GetRoomTypes()
        {
            Array roomTypeValues = Enum.GetValues(typeof(RoomType));

            var roomTypeList = new List<SelectListItem>();

            foreach (int typeNr in roomTypeValues)
            {
                roomTypeList.Add(new SelectListItem() { Text = Enum.GetName(typeof(RoomType), typeNr), Value = typeNr.ToString() });
            }

            return roomTypeList;
        }

        public static List<SelectListItem> GetBookingPriorities()
        {
            Array priorityValues = Enum.GetValues(typeof(Priority));

            var priorityTypeList = new List<SelectListItem>();

            foreach (int typeNr in priorityValues)
            {
                priorityTypeList.Add(new SelectListItem() { Text = Enum.GetName(typeof(Priority), typeNr), Value = typeNr.ToString() });
            }

            return priorityTypeList;
        }
    }
}
